import { getBeforeDetail } from '@/api';

//日期格式修改
export const timeTranslate = (val: string) => {
    return val.substring(4, 6) + "月" + val.substring(6, 8) + "日";
}

//获取以前的新闻
export const getBeforeData = (time: string) => {
    return getBeforeDetail(time).then((res) => {
        return res;
    })
}